<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="itheima" uri="http://itheima.com/common/"%>
<%@ include file="/common/base.jsp"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="<%=path %>/css/pintuer.css">
<link rel="stylesheet" href="<%=path %>/css/admin.css">
<script src="<%=path %>/js/jquery.js"></script>
<script src="<%=path %>/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加菜品</strong></div>
  <div class="body-content">
    <form method="post" class="form-x"  action="<%=basePath%>/vegetable/createVegetable.action" id="listform">
    <!--数据项 begin -->  
      <div class="form-group">
        <div class="label">
          <label>菜品编号：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="vegetable_id" data-validate="required:请输入菜品编号" />
          <div class="tips"></div>
        </div>
      </div>
      <!--数据项 end -->
       <!--数据项 begin -->  
       <div class="form-group"> 
        <div class="label">
          <label>菜品名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="vegetable_name" data-validate="required:请输入菜品名称" />
          <div class="tips"></div>
        </div>
      </div>
      <!--数据项 end -->
          <!--数据项 begin -->  
      <div class="form-group">
        <div class="label">
          <label>菜品描述：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="describes" data-validate="required:请输入菜品描述" />
          <div class="tips"></div>
        </div>
      </div>
      <!--数据项 end -->
      <!--数据项 begin -->  
      <div class="form-group">
        <div class="label">
          <label>价钱：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="price" data-validate="required:请输入价钱" />
          <div class="tips"></div>
        </div>
      </div>
         
      <!--数据项 end -->
       
         
  
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit" onclick="createVegetable()"> 提交</button>
        </div>
      </div>
    </form>
  </div>
<%-- <script>
	// 创建客户
    function createVegetable() {
    $.post("<%=basePath%>vegetable/createVegetable.action",
		$("#listform").serialize(),function(data){
	        if(data =="OK"){
	            alert("客户创建成功！");
	            window.location.reload();
	        }else{
	            alert("客户创建失败！");
	            window.location.reload();
	        }
	   });
	}
</script> --%>
</body></html>

